from django.urls import path
from .views import RegisterView, UsernameCountView, MobileCountView, LoginView, LogoutView, CenterView, EmailView, Emails_Verification, AddressCreateView, AddressView, DeleteAddress, TitleView, UserHistoryView
urlpatterns = [
    path('usernames/<username:username>/count/', UsernameCountView.as_view()),
    path('mobiles/<mobiles:mobiles>/count/', MobileCountView.as_view()),
    path('register/', RegisterView.as_view()),
    path('register/', RegisterView.as_view()),
    path('login/', LoginView.as_view()),
    path('logout/', LogoutView.as_view()),
    path('info/', CenterView.as_view()),
    path('emails/', EmailView.as_view()),
    path('emails/verification/', Emails_Verification.as_view()),
    path('addresses/create/', AddressCreateView.as_view()),
    path('addresses/<id>/', AddressCreateView.as_view()),
    path('addresses/', AddressView.as_view()),
    path('addresses/<id>/', DeleteAddress.as_view()),
    path('addresses/<id>/title/', TitleView.as_view()),
    path('browse_histories/', UserHistoryView.as_view()),
]